package cn.com.egova.dao;

import cn.com.egova.domain.Dict;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import java.util.List;

/**
 * Created by yuanchao on 2020/5/24.
 */
public class DictDaoImpl extends HibernateDaoSupport implements DictDao {

    @Override
    public List<Dict> findByCode(String dict_type_code) {
        List<Dict> list = (List<Dict>) this.getHibernateTemplate().find("from Dict where dict_type_code = ?", dict_type_code);
        return list;
    }
}
